<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta name="author" content="www.cnadlm.com" />
<link href="<?=domain?>static/style/union.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?=domain?>static/script/core.js" charset="utf-8"></script>
<script type="text/javascript" src="<?=domain?>static/script/home.js" charset="utf-8"></script>
<title><?=name?>-信息中心</title>
<body>
<div class="nav">
	<div class="list">
		<ul>
		  <?php
		  foreach($menu as $key=>$value){
		  ?>
		  <li><a href="<?=($value['value'])?>"><?=$value['name']?></a></li>
		  <?php
		  }
		  ?>
		 </ul>
	</div>
</div>
<div class="main">
	<div class="logo"><a href="<?=domain?>"><img src="<?=domain?>static/image/Logo.png"></a></div>
	<div class="content">
		<div class="home_nav">
			<div class="l"></div>
			<div class="c">
		        <ul>
		          <?php
		          	$current=-1;
					foreach($HomeMenu as $key=>$value){
						if(stripos($_SERVER['SCRIPT_NAME'],$value['value'])){
							$current=$key;
						}
				  ?>
		          <li<?=($current==$key?' class="sel"':'')?>><a href="<?=domain?>home/<?=$value['value']?>"><?=$value['name']?></a></li>
		          <?php
					}
		          ?>
		          <li><a href="<?=domain?>action/logout.php">安全退出</a></li>
		        </ul>
			</div>
			<div class="r"></div>
		</div>
		<div class="manage">
			<div class="left">
				<div class="module">
					<div class="bar"><div>您的概括</div></div>
					<div class="handle">
					<div class="action">
						<div class="t">最新消息</div>
					</div>
					<div class="block">
							<table cellpadding="0" cellspacing="0" width="100%">
								<tbody>
									<?php
										foreach($publish as $key=>$value){
									?>
									<tr <?=$key/2?'':'class="even"'?>>
										<td><a href="<?=domain?>view/publish.php?id=<?=$value['id']?>" target="_blank"><?=$value['title']?></a></td>
										<td><?=date('Y-m-d H:i:s',$value['date'])?></td>
									</tr>
									<?php
										}
									?>
								</tbody>
							</table>
					</div>
					<div class="pagination">
						<?=$pagination?>
					</div>
					</div>
				</div>
			</div>
			<div class="right">
				<div class="module">
					<div class="bar"><div>您好，<font color="red"><?=$mail?></font></div></div>
					<div class="annal">
						<div class="matial i1">未结算佣金：<?=$commision?>&nbsp;元</div>
						<div class="matial i2">收款人：<?=$bank?></div>
						<div class="matial i3">最后登录：<span id="last"><?=$ip?></span></div>
						<div class="matial i4">登录时间：<?=$date?></div>
					</div>
					<div class="comion">可结算佣金：&nbsp;<?=$money?>&nbsp;元</div>
					<div class="comion">支付中佣金：&nbsp;<?=$frozen?>&nbsp;元</div>
				</div>
				<script language="JavaScript" type="text/javascript">
				$.getScript('http://web.juhe.cn/s/ip2addr/do.php?ip2addr='+$('#last').text());
				function juheWebjsip2addrReturn(json){
					if(json.result=='1'){if(json.area.length<=7){json.area+='('+json.ip+')';}$('#last').html(json.area);}
				}
				</script>
			</div>
		</div>
		<div class="footer">
			<?=$foot?>
		</div>
	</div>
</div>
</body>
</html>